package com.hzhq.contract.util;

import java.util.Locale;
import java.util.UUID;

/**
 * @author hzhq
 * @create 2021/4/8 10:54 下午
 * @email hzhq1255@163.com
 *
 * uuid 生成工具类
 */
public class CodeUtil {

    public static String getUUID32(){
        return UUID.randomUUID().toString().replace("-","").toLowerCase(Locale.ROOT);
    }

    public static void main(String[] args) {
        System.out.println(getUUID32());
        System.out.println(UUID.randomUUID());
    }
}
